package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CoffeeBeanFarmMapper;
import com.ruoyi.system.domain.CoffeeBeanFarm;
import com.ruoyi.system.service.ICoffeeBeanFarmService;

/**
 * 咖啡豆产园信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-02-10
 */
@Service
public class CoffeeBeanFarmServiceImpl implements ICoffeeBeanFarmService 
{
    @Autowired
    private CoffeeBeanFarmMapper coffeeBeanFarmMapper;

    /**
     * 查询咖啡豆产园信息
     * 
     * @param placeId 咖啡豆产园信息主键
     * @return 咖啡豆产园信息
     */
    @Override
    public CoffeeBeanFarm selectCoffeeBeanFarmByPlaceId(Long placeId)
    {
        return coffeeBeanFarmMapper.selectCoffeeBeanFarmByPlaceId(placeId);
    }

    /**
     * 查询咖啡豆产园信息列表
     * 
     * @param coffeeBeanFarm 咖啡豆产园信息
     * @return 咖啡豆产园信息
     */
    @Override
    public List<CoffeeBeanFarm> selectCoffeeBeanFarmList(CoffeeBeanFarm coffeeBeanFarm)
    {
        return coffeeBeanFarmMapper.selectCoffeeBeanFarmList(coffeeBeanFarm);
    }

    /**
     * 新增咖啡豆产园信息
     * 
     * @param coffeeBeanFarm 咖啡豆产园信息
     * @return 结果
     */
    @Override
    public int insertCoffeeBeanFarm(CoffeeBeanFarm coffeeBeanFarm)
    {
        return coffeeBeanFarmMapper.insertCoffeeBeanFarm(coffeeBeanFarm);
    }

    /**
     * 修改咖啡豆产园信息
     * 
     * @param coffeeBeanFarm 咖啡豆产园信息
     * @return 结果
     */
    @Override
    public int updateCoffeeBeanFarm(CoffeeBeanFarm coffeeBeanFarm)
    {
        return coffeeBeanFarmMapper.updateCoffeeBeanFarm(coffeeBeanFarm);
    }

    /**
     * 批量删除咖啡豆产园信息
     * 
     * @param placeIds 需要删除的咖啡豆产园信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeBeanFarmByPlaceIds(Long[] placeIds)
    {
        return coffeeBeanFarmMapper.deleteCoffeeBeanFarmByPlaceIds(placeIds);
    }

    /**
     * 删除咖啡豆产园信息信息
     * 
     * @param placeId 咖啡豆产园信息主键
     * @return 结果
     */
    @Override
    public int deleteCoffeeBeanFarmByPlaceId(Long placeId)
    {
        return coffeeBeanFarmMapper.deleteCoffeeBeanFarmByPlaceId(placeId);
    }
}
